package com.jeesite.common.utils.excel.fieldtype;


import com.jeesite.common.utils.SpringUtils;
import com.jeesite.modules.fl.entity.Leaguer;
import com.jeesite.modules.fl.service.LeaguerService;

public class LeaguerType {

	private static LeaguerService leaguerService = SpringUtils.getBean(LeaguerService.class);

	public static Object getValue(String val)
    {
        return leaguerService.getByCellphone(val);
    }
	
	public static String setValue(Object val)
    {
        if(val instanceof Leaguer)
        {
        	  Leaguer leaguer = (Leaguer)val;
            return leaguer.getCellphone();
        } else
        {
            return "";
        }
    }
}
